﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="ListByCat.ascx.vb" Inherits="FrontEnd_Control_Oto_ListByCat" %>
<%@ Register TagPrefix="aspNewControls" Namespace="NewControls" %>
<script type="text/javascript" >
    function ajaxJquery() {
        $(function () {
            
            //        $(".dropdown").hover(
            //          function () {
            //              $(this).attr("style","z-index:200;");
            //              $(this).find(".submenu").show();
            //          },
            //          function () {
            //              $(".submenu").hide();
            //              $(this).attr("style", "z-index:0;");
            //          }
            //        );
        });
  }

</script>



<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>

<div class="box_porletmain_ListByCat">
    <div class="tab_titlelist">
                <ul>
                    <li class="active_tab"><asp:HyperLink ID="hplTimOto" runat="server"><h1><span>TÌM ÔTÔ:</span></h1></asp:HyperLink></li>
                </ul>
                <div class="text_sumlist">
                    &nbsp;</div>
            </div>

    <div class="SearchBox">
        <div class="DivRow"><i>Hãy nhập các điều kiện tìm kiếm  để có kết quả mong muốn.</i></div>

        <div class="DivRow" >
             <div class="Left">Từ khóa:</div>
             <div class="Right"> 
                    <asp:TextBox ID="txtTitle" runat="server" CssClass="DropDownList" MaxLength="100" ></asp:TextBox>
             </div>
        </div>

        <div class="DivRow" >
             <div class="Left">Hãng xe:</div>
             <div class="Right"> 
                    <asp:DropDownList ID="ddlHangchetao" runat="server" CssClass="DropDownList" AutoPostBack="true" ></asp:DropDownList>
             </div>
        </div>

        <div class="DivRow" >
             <div class="Left">Đời xe:</div>
             <div class="Right"> 
                    <asp:DropDownList ID="ddlDoiXe" runat="server" CssClass="DropDownList"></asp:DropDownList>
             </div>
        </div>

        <div class="DivRow">
            <div class="Left">Tình trạng xe:</div> 
            <div class="Right">
               
                    <asp:DropDownList ID="ddlTinhTrangXe" runat="server" CssClass="DropDownList">
                        <asp:ListItem Value="-1">---Tất cả ---</asp:ListItem>
                        <asp:ListItem Value="1">Xe mới</asp:ListItem>
                        <asp:ListItem Value="0">Xe cũ</asp:ListItem>
                    </asp:DropDownList>
               
            </div>
        </div>
        <div class="DivRow">
                <div class="Left">Xe có ảnh ?</div>
                <div class="Right">
                    <asp:DropDownList ID="ddlXeCoAnh" runat="server" CssClass="DropDownList">
                        <asp:ListItem Value="-1">---Tất cả ---</asp:ListItem>
                        <asp:ListItem Value="1">Xe có ảnh</asp:ListItem>
                        <asp:ListItem Value="0">Xe không có ảnh</asp:ListItem>
                    </asp:DropDownList>                             
                
                </div>
        </div>
        <div class="DivRow">
                <div class="Left">Giá từ</div>
                <div class="Right">
                    <asp:TextBox ID="txtFromPrice" runat="server" CssClass="DropDownList" Width="130px" MaxLength="6"></asp:TextBox> đến <asp:TextBox ID="txtToPrice" runat="server" CssClass="DropDownList" Width="130px" MaxLength="6"></asp:TextBox> (tr)
                </div>
        </div>
        <div class="DivRow">
                <div class="Left">&nbsp;</div>
                <div class="Right">
                    <asp:Button runat="server" ID="btnSearh" CausesValidation="false" Text="Tìm" CssClass="btn" /> &nbsp;
                    <input type="reset" value="Đặt lại" class="btn" />
                </div>
        </div>
    
    </div>
</div>



<div class="box_porletmain_ListByCat">
    <!--row tab porlet -->
    <div class="row_tabporlet_ListByCat">
        <ul class="tabCircle">
            <asp:Repeater ID="rptTinhThanhChinh" runat="server">
                <ItemTemplate>
                    <li><asp:LinkButton ID="lbtTitle" runat="server" OnClick="lbtTitle_Click"></asp:LinkButton></li> 
                </ItemTemplate>
            </asp:Repeater>
        </ul>
        <div class="cell_combobox">
            <asp:DropDownList ID="ddlTinhThanh" runat="server" CssClass="input_combobox" style="width: 110px;" AutoPostBack="true">                
                <asp:ListItem Value="0">Tỉnh thành khác</asp:ListItem>            
            </asp:DropDownList>

        </div>
    </div>
    <!-- end row tab porlet -->
    <!-- mid porlet content -->
    <div class="bgmid_midporlet_ListByCat">
        <div class="box_contentlist_ListByCat">
            <!-- tab title list -->
            <div class="tab_titlelist">
                <ul>
                    <li class="active_tab"><a href=""><span>Tin bán xe</span></a></li>
                </ul>
                <div class="text_sumlist">
                    Tổng : <asp:Label ID="lblTotal" runat="server" Text="0"></asp:Label></div>
            </div>
            <!-- end tab title list -->
                <asp:Repeater ID="rptProduct" runat="server">
                    <ItemTemplate>
                    <div class="row_listveiwe_ListByCat">
                    <div class="cell_1">
                          <div class="lifeline_product"><asp:Literal runat="server" ID="ltrTinhTrangXe"></asp:Literal></div>
                        
                            <div class="thumb_imgproduct">
                                   <asp:Image ID="imgProduct" runat="server" />
                            </div>
                        
                             <div class="lifeline_product"><asp:Literal runat="server" ID="ltrMaTin"></asp:Literal></div>
                    </div>
                                                    
                         <div class="cell_2">
                                <div class="title_product"><asp:HyperLink ID="hplTitle" runat="server"></asp:HyperLink></div>
                                <div class="desc_product">
                                    <asp:Literal runat="server" ID="ltrDescription"></asp:Literal>
                                </div>
                        </div>
                                                    
                        <div class="cell_3">
                            <div class="address_product"></div>
                             <div class="price_product"><asp:Literal ID="ltrPrice" runat="server"></asp:Literal></div>
                                <div class="USDHome"><asp:Literal ID="ltrUSD" runat="server" /></asp:Literal></div>
                                <div class="info_product">
                                    <span><asp:Literal ID="ltrPriceUSD" runat="server"></asp:Literal> </span><br>
                                Liên hệ: <asp:Literal ID="ltrLienHe" runat="server"></asp:Literal>
                                <br>
                                ĐT: <span><asp:Literal ID="ltrTelephone" runat="server"></asp:Literal></span>
                            </div>
                                                            
                        </div>
                         <div class="cell_3">
                                <div class="lifeline_product">
                                    <asp:Literal id="ltrTinhThanh" runat="server"></asp:Literal>
                                </div>
                         </div>

                    </div>
                    </ItemTemplate>
                </asp:Repeater>          
                             <div class="row_paging_ListByCat">
                                <!--phan trang-->
                                <div class="text_sumbottom">Tổng : <asp:Label ID="lblTotal2" runat="server" Text="0"></asp:Label></div>

                                <div id="results_resultsNavigationDiv" class="pagination">
                                    <ul>
                                        <asp:LinkButton ID="lnkFirst" runat="server" CssClass="nextpage"><<</asp:LinkButton>
                                        <asp:Repeater ID="rptPage" runat="server">
                                            <ItemTemplate>
                                                <asp:LinkButton ID="lnkTitle" runat="server" OnClick="lnkTitle_Click"></asp:LinkButton>
                                            </ItemTemplate>
                                        </asp:Repeater>
                                        <asp:LinkButton ID="lnkLast" runat="server" CssClass="nextpage">>></asp:LinkButton>
                                    </ul>
                                </div>
                                <asp:HiddenField ID="hidCount" Value="0" runat="server" />
                                <asp:HiddenField ID="hidIndex_page" Value="0" runat="server" />
                                <asp:HiddenField ID="hidCur_Page" Value="1" runat="server" />
                                <asp:HiddenField ID="hidStoreId" Value="0" runat="server" />
                                 <asp:HiddenField ID="hidCateId" Value="0" runat="server" />
                            </div>
            
            

        </div>
    </div>
</div>
</ContentTemplate>
</asp:UpdatePanel>